package com.example.ticket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.ticket.domain.PageDomain;
import com.example.ticket.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService extends IService<User> {
    public PageInfo<User> page(PageDomain pageDomain);

    public List<User> Userlist();

    public User checkEmail(String email);

    public User selectById(Integer id);

    public int ResetPassowrd(String password,String username);

    public User selectByUsername(String username);

    public  List<User> findByUsername(String username);

    public int deleteById(Integer id);

    public User freezeById(User user);

    public User updateUser(User user);

    public User insertUser(User user);

    public int insertUserAuthority(Integer id);

    public User checkCode(String code);
}
